<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1" cellpadding="10" cellspacing="0">
    <tr>
        <td>编号</td>
        <td>电话</td>
        <td>姓名</td>
        <td>生日</td>
        <td>图像</td>
        <td>状态</td>
    </tr>
    <c:forEach var="user" items="${userList}">
        <tr>
            <td>${user.id}</td>
            <td>${user.telephone}</td>
            <td>${user.realname}</td>
            <td><fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
            <td><img src="<%=request.getContextPath()%>/static/upload/${user.headimg}" width="96px" height="54px"></td>
            <td>${user.available==1?"启用":"禁用"}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
